package com.ruoyi.driver.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单信息对象 tb_driver
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
public class TbDriver extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户唯一标识ID */
    private Long driverId;

    /** 登录用户名 */
    @Excel(name = "登录用户名")
    private String driverName;

    /** 加密后的密码 */
    @Excel(name = "加密后的密码")
    private String password;

    /** 绑定手机号（用于登录和找回密码） */
    @Excel(name = "绑定手机号", readConverterExp = "用=于登录和找回密码")
    private String phoneNumber;

    /** 人脸识别特征数据 */
    @Excel(name = "人脸识别特征数据")
    private String faceVerificationData;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationDate;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLogin;

    public void setDriverId(Long driverId) 
    {
        this.driverId = driverId;
    }

    public Long getDriverId() 
    {
        return driverId;
    }

    public void setDriverName(String driverName) 
    {
        this.driverName = driverName;
    }

    public String getDriverName() 
    {
        return driverName;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }

    public void setFaceVerificationData(String faceVerificationData) 
    {
        this.faceVerificationData = faceVerificationData;
    }

    public String getFaceVerificationData() 
    {
        return faceVerificationData;
    }

    public void setRegistrationDate(Date registrationDate) 
    {
        this.registrationDate = registrationDate;
    }

    public Date getRegistrationDate() 
    {
        return registrationDate;
    }

    public void setLastLogin(Date lastLogin) 
    {
        this.lastLogin = lastLogin;
    }

    public Date getLastLogin() 
    {
        return lastLogin;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("driverId", getDriverId())
            .append("driverName", getDriverName())
            .append("password", getPassword())
            .append("phoneNumber", getPhoneNumber())
            .append("faceVerificationData", getFaceVerificationData())
            .append("registrationDate", getRegistrationDate())
            .append("lastLogin", getLastLogin())
            .toString();
    }
}
